<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../font_3886982_rhumh7vfio/iconfont.css">
    <link rel="stylesheet" href="../css/index.css">
    <title>歌曲列表</title>
</head>
<body>
    <h2>歌曲列表</h2>
    <ul>
        <li>
            <span  style="text-align: left;">歌曲名称</span>
            <span>演唱歌手</span>
            <a href="JavaScript:;" style="color: black;">播放</a>
            <button>删除</button>
            <button>修改</button>
        </li>
        <% datas.forEach((item,index)=>{%>
            <li>
                <span title="<%=item.name%>" style="text-align: left;">
                    <%=item.name%>
                </span>
                <span>
                    <%=item.singer%>
                </span>
                <a id="/play?_id=<%=item._id%>" class="play"><span class="iconfont icon-bofang"></span></a>
                <button><a href="/del/<%=item._id%>">删除</a></button>
                <button><a href="/update?_id=<%=item._id%>">修改</a></button>
            </li>
            <%}) %>
    </ul>
    <div class="btn"><button><a href="/addSong">添加歌曲</a></button></div>
    <a href="/delSession" class="logout">退出登录</a>
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src=""></iframe>
    <div class="light"></div>
    <script src="../js/index.js"></script>
</body>
</html>